package common

import (
	"io/ioutil"
	"mssqltools/entity"

	"gopkg.in/yaml.v2"
)

// 加载配置
func GetConfig() *entity.ServerConfig {
	var conf *entity.ServerConfig
	//加载配置
	file, _ := ioutil.ReadFile("./config.yaml")
	yaml.UnmarshalStrict(file, &conf)
	return conf
}
